package com.hirisun.calendar.time;

public class Unit {
	
	public static final Unit SECOND = new Unit("second");
	public static final Unit MINUTE = new Unit("minute");
	public static final Unit HOUR = new Unit("hour");
	public static final Unit DAY = new Unit("day");
	public static final Unit WEEK = new Unit("week");
	public static final Unit MONTH = new Unit("month");
	public static final Unit YEAR = new Unit("year");
	
	public static final int MS_IN_SECOND = 1000;
	public static final int MS_IN_MINUTE = MS_IN_SECOND * 60;
	public static final int MS_IN_HOUR = MS_IN_MINUTE * 60;
	public static final int DAY_IN_WEEK = 5;
	public static final int DAY_IN_MONTH = DAY_IN_WEEK * 4;
	public static final int DAY_IN_YEAR = DAY_IN_MONTH * 12;
	
	
	
	private String name;

	private Unit(String name) {
		super();
		this.name = name;
	}

	public String getName() {
		return name;
	}
}
